package com.util.cdb.bean.entity;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * (SsDbinfo)实体类
 *
 * @author
 * @since 2022-01-02 20:44:14
 */
@Entity
@Table(name = "ss_dbinfo")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
public class DbInfo implements Serializable {
    private static final long serialVersionUID = 688458999471987961L;
    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 数据源名称
     */
    @Column(name = "DBNAME", length = 50)
    private String dbname;
    /**
     * 用户ID
     */
    @Column(name = "USER_ID", length = 32)
    private String userId;
    /**
     * 数据源类型代码
     */
    @Column(name = "DB_TYPE", length = 2)
    private String dbType;
    /**
     * 数据源类型代码名称
     */
    @Column(name = "DB_TYPENAME", length = 30)
    private String dbTypename;
    /**
     * 数据库连接url
     */
    @Column(name = "DB_URL", length = 1024)
    private String dbUrl;
    /**
     * 数据库连接用户名
     */
    @Column(name = "DB_USERNAME", length = 512)
    private String dbUsername;
    /**
     * 数据库连接密码
     */
    @Column(name = "DB_PASSWORD", length = 512)
    private String dbPassword;
}

